#include "CApp.h"

CApp::CApp()
{
	if(Init())
		int i = 1;
}

bool CApp::Init()
{
	params.AntiAlias = false;
	params.Bits = 32;
	params.DriverType = EDT_OPENGL;
	params.EventReceiver = NULL;
	params.Fullscreen = true;
	params.WindowSize.set(GetSystemMetrics(SM_CXSCREEN),
		GetSystemMetrics(SM_CYSCREEN));

	m_device = createDeviceEx(params);

	if(!m_device)
		return false;

	m_device->setWindowCaption(L"Pathman");

	m_pGame = new Game(m_device, params);

	return true;
}

CApp::~CApp()
{
	m_device->drop();
}

